<template>
    <div class="unreconciled">
      <!-- 承运商未对账 -->
      <div v-for="(item, index) in chartData" :key="index" class="unreconciled-item">
        <div class="left-con">
          <span class="ind" style="margin-right: 8px;">{{ index + 1 }}</span>
          <span class="name">{{ item.name }}</span>
        </div>
  
        <div class="right-num">
          <el-statistic class="val" group-separator="," :precision="2" :value="item.value"></el-statistic>
          <span class="unit">元</span>
        </div>
      </div>
    </div>
  </template>
  
  <script>
  import { getChartData } from "@/api/echarts";
  
  export default {
    name: 'unreconciled',
    components: {},
    props: [],
    data() {
      return {
        chartData: [
          {
            name: "客户1",
            value: 10
          },
          {
            name: "客户2",
            value: 10
          },
          {
            name: "客户3",
            value: 10
          },
          {
            name: "客户4",
            value: 10
          },
          {
            name: "客户5",
            value: 10
          },
        ]
      };
    },
    mounted() {
      getChartData(
        { "custom_chart_id": "22" }
      ).then(res => {
        this.chartData = res.data.data;
        // this.setOption();
      });
    },
    methods: {},
  };
  </script>
  <style lang="scss" scoped>
  
  .unreconciled{
    width: 100%;
    overflow: hidden;
    // display: flex;
  }
  .unreconciled-item {
    display: flex;
    justify-content: space-between;
    color: #323232;
    font-size: 14px;
    // font-weight: bold;
    line-height: 30px;
  
    .left-con {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  
    .right-num {
      display: flex;
      width: 120px;
      justify-content: flex-end;
    }
  
    .ind {
      background-image: linear-gradient(to right, rgb(157, 191, 239), rgb(70, 109, 236));
      color: transparent;
      -webkit-background-clip: text;
      font-style: italic;
      color: rgb(64, 158, 255);
      font-size: 13px;
      font-weight: bold;
    }
  
    .name {
       color: #4c9bfd ;
    }
  
    .val {
      margin-right: 3px;
      font-weight: bold;
      
      /deep/.con {
        justify-content: flex-end;
      }
  
      /deep/.con .number {
        font-size: 14px;
        line-height: 30px;
        color: #fff !important;
      }
    }
  
    .unit {
        color: #4c9bfd ;
      font-size: 12px;
    }
  }
  </style>